﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="~/MovieRevenueReport.aspx.cs"
    Inherits="MBS.MovieRevenueReport" MasterPageFile="~/Site.Master" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <table>
            <tr style="height: 300px">
                <td>
                    <asp:Label ID="lblDummy" runat="server" Text="Reports" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblFromDate" runat="server" Text="From Date" CssClass="label" ForeColor="#FF9900"></asp:Label>
                </td>
                <td>
                   <asp:CalendarExtender ID="startDateCalendar" TargetControlID="StartDateTextBox" runat="server" CssClass="custom-calendar">
                    </asp:CalendarExtender>
                    <asp:TextBox ID="StartDateTextBox" runat="server"  ></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="StartDateTextBox"
                        ErrorMessage="Start Date is required" ForeColor="Red"></asp:RequiredFieldValidator>
                   </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblToDate" runat="server" Text="To Date" CssClass="label" ForeColor="#FF9900"></asp:Label>
                </td>
                <td>
                   <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </asp:ToolkitScriptManager>
                    <asp:TextBox ID="EndDateTextBox" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="endDateCalendar" TargetControlID="EndDateTextBox" runat="server" CssClass="custom-calendar" >
                    </asp:CalendarExtender>
                </td>
                <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="EndDateTextBox" ErrorMessage="End Date is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblMovie" runat="server" Text="Movie" CssClass="label" ForeColor="#FF9900" Visible="false"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlMovie" runat="server" CssClass="dropdown" Visible="false">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnReport" runat="server" CssClass="button" Text="Generate" OnClick="btnReport_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table>
            <tr>
                <td>
                    <CR:CrystalReportViewer ID="crpViewerMovie" runat="server" AutoDataBind="true" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
